<script setup lang="ts">
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
import Board from "./components/Board.vue";
import CanvaBoard from "./components/CanvaBoard.vue";

const jumpDooring = () => {
  window.location.href = "http://h5.dooring.cn/h5_plus";
};
</script>

<template>
  <header class="header">
    <span class="logo">欧几里夕-趣谈前端</span>
    <button class="more-btn primary" @click="jumpDooring">低代码可视化实践</button>
  </header>
  <main>
    <Board msg="常见的几何边界计算" />
    <CanvaBoard />
  </main>
  <footer><a href="http://h5.dooring.cn/docz">趣谈前端-徐小夕</a></footer>
</template>

<style scoped>
.header {
  display: flex;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
  height: 70px;
  line-height: 70px;
  background-color: aliceblue;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.header .more-btn {
  margin-left: auto;
}
.header .logo {
  font-size: 20px;
  display: inline-block;
  font-weight: bold;
}
main {
  min-height: calc(100vh - 100px);
}
</style>
